package com.thwj.project.biz.enums;

/***
 * 收费类型
 */
public enum ActivityChargeTypeEnum {

    AA_before(1,"AA"),
    free(2,"免费"),
    // 线下收费暂不启用 前端不用展示
//    offline(3,"线下收费")
    ;
    ActivityChargeTypeEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static ActivityChargeTypeEnum getEnumByValue(Integer value){
        for (ActivityChargeTypeEnum typeEnum : ActivityChargeTypeEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
